package Work4;

public class Sonar {
	public void Inspect(Fish f) {
		f.show();
		f.swimming();
	}

	public void Inspect(Dolphin d) {
		d.show();
		d.swimming();
	}

	public void Inspect(Submarine s) {
		s.show();
		s.swimming();
	}
}
